package LEKIEUANH.ARRAYS.EX09;

public class Controller {
	//Method tính tổng số giờ làm việc cho mỗi employee
	public int[] emtotalHours(int[][] Employee){
		int[] temp = new int[Employee.length];
			for(int i = 0; i<Employee.length;i++){
				for(int j = 0;j<Employee[i].length;j++){
					temp[i] +=Employee[i][j];
					}
			}
			int[] myValue = new int[temp.length];
			System.arraycopy(temp, 0, myValue, 0, temp.length);
			return myValue;
	}
}
